package com.liuyjy.base.mangodb.config;

import com.liuyjy.base.mangodb.util.MongoDbUtil;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author liuyjy
 * @Date 2022/2/23 13:25
 * @Description: 配置文件
 **/
@Configuration
public class MangoDbConfig {

    @Bean
    @ConditionalOnMissingBean
    public MongoDbUtil getMongoDbUtil() {
        return new MongoDbUtil();
    }
}
